package com.platform.service.impl;

import com.platform.dao.MerchantInformationDao;
import com.platform.entity.MerchantInfomationEntity;
import com.platform.service.MerchantInfomationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MerchantInformationServiceImpl implements MerchantInfomationService {
    @Autowired
    private MerchantInformationDao merchantInformationDao;


    @Override
    public MerchantInfomationEntity queryObjectByMid(Integer mid) {
        return merchantInformationDao.queryObjectByMid(mid);
    }

    @Override
    public Integer update(MerchantInfomationEntity merchantInfomationEntity) {
        return merchantInformationDao.update(merchantInfomationEntity);
    }

    @Override
    public Integer save(MerchantInfomationEntity merchantInfomationEntity) {
        return merchantInformationDao.save(merchantInfomationEntity);
    }

    @Override
    public List<MerchantInfomationEntity> queryList(Map<String, Object> param) {
        return merchantInformationDao.queryList(param);
    }

    @Override
    public Integer queryTotal(Map<String, Object> param) {
        return merchantInformationDao.queryTotal(param);
    }

    @Override
    public List<Map<String, Object>> queryListByParam(Map<String, Object> param) {
        return merchantInformationDao.queryListByParam(param);
    }

    @Override
    public List<MerchantInfomationEntity> queryAllMerchantList() {
        return merchantInformationDao.queryAllMerchantList();
    }
}
